import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/exam/base/auditcase/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/exam/base/auditcase',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/exam/base/auditcase/' + id,
    method: 'get'
  })
}

export function getFileList(id) {
  return request({
    url: '/exam/prepare/notice/getDefaultNoticeAttachments/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/exam/base/auditcase/' + id,
    method: 'delete'
  })
}

export function delIds(ids) {
  return request({
    url: '/exam/base/auditcase/removeByIds/' + ids,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/exam/base/auditcase',
    method: 'put',
    data: obj
  })
}

export function submit(obj) {
  return request({
    url: '/exam/base/auditcase/submit',
    method: 'post',
    data: obj
  })
}
